package Utils;

import Dao.ArticleDao;
import Dao.ArticleDaoImpl;
import Dao.UserDao;
import Dao.UserDaoImpl;
import Model.User;

/**
 * @author zyp
 * date 2022-03-08
 */
public class DaoFactory {
    private static UserDao userDao = new UserDaoImpl();
    private static ArticleDao articleDao = new ArticleDaoImpl();

    public static UserDao getUserDao() {
        return userDao;
    }

    public static ArticleDao getArticleDao() {
        return articleDao;
    }
}
